﻿@section header{
    <title>数据库管理</title>
    <link type="text/css" rel="stylesheet" href="/administration/css/site.css"/>
    <script type="text/javascript" src="/administration/scripts/jquery.js"></script>
}

@section body{
<h1 class="rightH1">
开发人员 &gt;&gt; 数据库管理
<div class="right">
<div class="clear"></div>
</div>
<div class="clear"></div>
</h1>

<div class="addTable">
<table width="100%">
  <tr>
    <td width="76px" align="right">SQL语句：</td>
    <td>
    <br />
        <form action="@Url.Action("runsql")" method="post" id="RunSQL">
            <textarea cols="40"  rows="6" id="Sql" name="Sql"></textarea>
            <a href="" onclick="return RunSql()"><img src="/administration/images/submit.jpg" /></a>
            <script type="text/javascript">
                function RunSql() {
                    if ($("#Sql").val() == "") {
                        alert("SQL语句不能为空！");
                    }
                    else {
                        $("#RunSQL").submit();
                    }
                    return false;
                }
            </script>
        </form>
    </td>
    </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
</table>
</div>
}
